package cn.mujiankeji.mbrowser.界面.组件.按钮

import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.FilterChip
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp


/**
 * 高度 25.dp
 */
@Composable
fun 水平标签(name : String,
             selected : Boolean = false,
             paddingValues: PaddingValues = PaddingValues(horizontal = 5.dp),
             modifier: Modifier = Modifier.height(28.dp).padding(paddingValues),
             clickable : ()-> Unit){
    FilterChip(selected,
        modifier = modifier,
        onClick = {clickable()},
        label = {
            Text(name, style = MaterialTheme.typography.bodyMedium,
                color = MaterialTheme.colorScheme.onSurface)
        })
}

